﻿using _10_HPBar.CharacterBase;
using _10_HPBar.GameFrame.Interface;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _10_HPBar.Items.Base
{
    internal class Equipment : Item
    {
        public int Atk { get; protected set; }
        public int Def { get; protected set; }

        public Equipment(int id, string name, string description, int atk,int def) : base(id, name, description)
        {
            atk = Atk;
            def = Def;
        }

        public void Equip(IAttack character)
        {
            character.Atk += Atk;
            character.Def += Def;
        }

        public void UnEquip(IAttack character)
        {
            character.Atk -= Atk;
            character.Def -= Def;
        }
    }
}
